$(function () {
    var articleid = server.getQueryString('articleid');
    var dataid = server.getQueryString('dataid');
    if(server.isEmpty(articleid)){
        pop_up('无效的文章ID');
        return;
    }
server.req('wechat/cmsarticle/articledetail',{articleid:articleid},function (e) {
    console.log('got article detail')
    console.log(e)
    if(e.code==0){
        $("#title").text(e.data.title);
        $("#subtitle").text(e.data.createDate);
    }
})
    server.req('wechat/cmsarticle/articleData',{id:dataid},function (e) {
        console.log(e)
        if(e.code==0){
            $("#articledata").html(e.data.content);
        }
        });
})